package com.by.service.impl;

import com.by.common.crud.BaseServiceImpl;
import com.by.dao.UserDao;
import com.by.entity.User;
import com.by.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/*
 * 继承默认实现
 * */
@Service
public class UserServiceImpl extends BaseServiceImpl<User,UserDao> implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public int queryBybName(String name) {
        return userDao.queryBybName(name);
    }

    @Override
    public User queryName(String name) {
        return userDao.queryName(name);
    }
}
